<?php
/**
 * Model representing service version.
 * It uses mapper to store service versions data in database table.
 * 
 * @author Damian Sromek <damianpaq@gmail.com>
 * @version 0.1
 */
// TODO: comment
// TODO: add checking setters parameters
// TODO: getter: user
class Plus_Model_Page_Page extends Plus_Model_Model_DbTable_Abstract
{	
	protected $_title;
	protected $_content;
	protected $_idUser;
	protected $_dateEdit;
	protected $_urlTitle;
	
	/**
	 * Creates service version model.
	 * @param $options array with service version data
	 * @return void
	 */
	public function __construct(array $options = array())
	{
		$options['idName'] = '_id';
		parent::__construct($options, 'Plus_Model_Page_Mapper');
		$this	->addVar('_id', 'id_Page', 'Id')
				->addVar('_idUser', 'id_user', 'IdUser')
				->addVar('_title', 'title', 'Title')
				->addVar('_content', 'content', 'Content')
				->addVar('_dateEdit', 'date_edit', 'DateEdit')
				->addVar('_urlTitle', 'url_title', 'UrlTitle');
	}
	
	public function setIdUser($value)
	{
		$this->_id_user = $value;	
		return $this;
	}
	
	public function getIdUser()
	{
		return $this->_id_user;
	}

	public function setTitle($value)
	{
		$this->_title = $value;	
		return $this;
	}
	
	public function getTitle()
	{
		return $this->_title;
	}
	

	public function setContent($value)
	{
		$this->_content = $value;	
		return $this;
	}
	
	public function getContent()
	{
		return $this->_content;
	}
	
	public function setDateEdit($value)
	{
		$this->_dateEdit = $value;	
		return $this;
	}
	
	public function getDateEdit()
	{
		return $this->_dateEdit;
	}
	
	public function setUrlTitle($value)
	{
		$this->_urlTitle = $value;
		return $this;
	}
	
	public function getUrlTitle()
	{
		return $this->_urlTitle;
	}
}